function init() {
	$('body').append("init() loaded...<br>");

	var obj = new myclass();
	obj.meth1();
	console.log(obj.attr4);
	console.log(obj.attr4.x);
}

function myclass() {
	this.attr1 = "attr1";
	this.attr2 = "attr2";
	this.attr3 = "attr3";

	this.attr4 = { x: 0, y: 1 };
}
myclass.prototype.meth1 = function() {
	$('body').append("called method meth1 for myclass object");
	alert(this.attr1);
};




